package com.example.demo.dao;

import com.example.demo.domain.User;
import com.example.demo.domain.Wx;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {

    //向user_user表插入信息
    int insertSelective(User record);

    //向user_wx表插入信息
    int insertWx(Wx recode);

    int deleteByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    //显示所有信息
    List<User> selectAll();

    //按Id进行查找
    User selectByPrimaryKey(Integer userId);

    //按openid进行查找
    User selectByOpenId(String openId);
}